<?php

namespace Application\controller;

use Cola\Controller;
class NoticeController extends Controller
{
    public function login() {
        $ccid = $this->get('channel');
        $cpid = GAME_ID;

        $NoticeModel = $this->model('Notice');
        $srids = $NoticeModel->getSrids($cpid);
        $notices = $NoticeModel->getLoginNotice($cpid, implode(',', $srids));
        $this->success($notices);
    }
}